/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package db.server.DTO;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author QuangKhai
 */
public class SelectQueryDTO {
    private List<String> _select;
    private List<String> _from;
    private List<ExpressionDTO> _where;
    private List<String> _groupBy;
    private String _linkWhere;
    private SelectQueryDTO _childQuery;
    
    private String _avg;
    private String _count;
    private String _sum;
    private String _max;
    private String _min;
            
    public SelectQueryDTO(){
        _select = new ArrayList<String>();
        _from = new ArrayList<String>();
        _where = new ArrayList<ExpressionDTO>();
        _groupBy = new ArrayList<String>();
        _count = "";
        _sum = "";
        _avg = "";
        _min = "";
        _max = "";
        _linkWhere = " ";
        _childQuery = null;
    }
    
    /**
     * @return the _select
     */
    public List<String> getSelect() {
        return _select;
    }

    /**
     * @param select the _select to set
     */
    public void setSelect(List<String> select) {
        this._select = select;
    }

    /**
     * @return the _from
     */
    public List<String> getFrom() {
        return _from;
    }

    /**
     * @param from the _from to set
     */
    public void setFrom(List<String> from) {
        this._from = from;
    }

    /**
     * @return the _where
     */
    public List<ExpressionDTO> getWhere() {
        return _where;
    }

    /**
     * @param where the _where to set
     */
    public void setWhere(List<ExpressionDTO> where) {
        this._where = where;
    }

    /**
     * @return the _childQuery
     */
    public SelectQueryDTO getChildQuery() {
        return _childQuery;
    }

    /**
     * @param childQuery the _childQuery to set
     */
    public void setChildQuery(SelectQueryDTO childQuery) {
        this._childQuery = childQuery;
    }

    /**
     * @return the _linkWhere
     */
    public String getLinkWhere() {
        return _linkWhere;
    }

    /**
     * @param linkWhere the _linkWhere to set
     */
    public void setLinkWhere(String linkWhere) {
        this._linkWhere = linkWhere;
    }

    /**
     * @return the _avg
     */
    public String getAvg() {
        return _avg;
    }

    /**
     * @param avg the _avg to set
     */
    public void setAvg(String avg) {
        this._avg = avg;
    }

    /**
     * @return the _count
     */
    public String getCount() {
        return _count;
    }

    /**
     * @param count the _count to set
     */
    public void setCount(String count) {
        this._count = count;
    }

    /**
     * @return the _sum
     */
    public String getSum() {
        return _sum;
    }

    /**
     * @param sum the _sum to set
     */
    public void setSum(String sum) {
        this._sum = sum;
    }

    /**
     * @return the _max
     */
    public String getMax() {
        return _max;
    }

    /**
     * @param max the _max to set
     */
    public void setMax(String max) {
        this._max = max;
    }

    /**
     * @return the _min
     */
    public String getMin() {
        return _min;
    }

    /**
     * @param min the _min to set
     */
    public void setMin(String min) {
        this._min = min;
    }

    /**
     * @return the _groupBy
     */
    public List<String> getGroupBy() {
        return _groupBy;
    }

    /**
     * @param groupBy the _groupBy to set
     */
    public void setGroupBy(List<String> groupBy) {
        this._groupBy = groupBy;
    }
}
